* {
  box-sizing: border-box;
}

body {
  background: #eee;
  margin: 20px 0;
}

article {
  width: 21cm;
  min-height: 29.7cm;
  background: white;
  margin: 0 auto;
  overflow: auto;
  padding: 1em;
}

.education > p {
  display: flex;
}

.education > p span:nth-child(2),
.education > p span:nth-child(3) {
  flex: 1;
}

.education > p span:last-child {
  padding-right: 2em;
}

@media (min-width: 500px) {
  .education > p span:first-child {
    flex: 1;
  }
}

.education > p span:last-child {
  padding-left: 1em;
}

.projects p {
  color: #666;
}

.projects strong {
  /* color: #f60; */
  color: red;
}

.projects > ol {
  margin-top: 0;
  list-style-position: inside;
  padding: 0;
}

.projects > ol > li {
  margin-bottom: 24px;
}

.projects > ol > li > header {
  display: flex;
  flex-wrap: wrap;
}

.projects > ol > li h3 {
  width: 200px;
}

.projects > ol > li span {
  flex: 1;
  text-align: right;
}

/* .projects header>span {
    display: block;
    margin: .5em 0;
} */

.projects header > span > a:first-child {
  margin-right: 2em;
}

#skills {
  width: 500px;
  height: 270px;
}

/* @media print {
    #skills {
        display: none;
    }
} */


.skills > .wrapper {
  display: flex;
  justify-content: space-between;
}

.skills > .wrapper > :first-child {
  margin-right: 24px;
}

.skills > .wrapper > ul {
  color: #666;
}

.skills > .wrapper strong {
  color: red;
}

.skills > .wrapper > ul > li {
  line-height: 1.2;
  margin-bottom: 8px;
}

.openSource header img {
  position: absolute;
  top: 0;
  right: 0;
}

.openSource > ul > li {
  margin-bottom: 24px;
}

.openSource header {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.openSource strong {
  color: red;
}

.jobs > ol > li {
  margin: 12px 0;
}

.jobs header {
  display: flex;
  color: #666;
  margin-bottom: 12px;
}

.jobs header > h3 {
  font-size: 18px;
  color: #333;
}

.jobs header > h4 {
  margin-left: 1em;
  font-size: 18px;
}

.jobs header > span {
  font-size: 18px;
  margin-left: auto;
}

@media (max-width: 500px) {
  body {
    margin: 0;
  }

  article {
    width: auto;
    height: auto;
  }

  .bio img {
    display: none;
  }

  .education > p span:first-child {
    width: 120px;
  }

  .education > p span:nth-child(3) {
    display: none;
  }

  .skills .wrapper {
    flex-direction: column;
  }

  #skills {
    width: auto;
  }

  .jobs header {
    flex-direction: column;
  }

  .jobs header > h3,
  .jobs header > h4,
  .jobs header > span {
    margin: 0;
  }
}

@media (max-width: 500px) {
  .projects header {
    flex-direction: column;
  }

  .projects > ol > li > header > span {
    margin: .5em 0;
    text-align: left;
  }

  .education > p span:last-child {
    padding-right: 1em;
  }
}